import numpy as np

def feature_vector(A):
    a, b = np.linalg.eig(A)
    return b

if __name__ == "__main__":
    A = np.array([[1,2,2],[2,1,2],[2,2,1]])
    print('打印特征向量b：\n{}'.format(feature_vector(A)))
